package com.inno.auth.controller.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.inno.auth.common.entity.PageDTO;
import com.inno.auth.common.enums.LoginTypeEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户DTO
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class PlannerUsersDTO extends PageDTO {


    private Long id;

    private String username;

    private String password;

    private String email;

    private String mobile;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerTimeStart;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerTimeEnd;

    private String avatar;
    /**
     * 个人简介
     */
    private String personalProfile;
    /**
     * 性别 0-男 1-女
     */
    private String gender;
    private String isDeleted;


    /**
     * 创建人
     */
    private Long createBy;
    /**
     * 创建时间
     */
    private Date createTime;

    private String code;


    /**
     * 微信登录时  用户的code值
     */
    private String wechatCode;
    /**
     * 登录类型
     * @see com.inno.auth.common.enums.LoginTypeEnum
     */
    private LoginTypeEnum type;


}

